package com.owen.oauth2.client.connect;

import com.owen.oauth2.client.api.MyOAuth2;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;

public class MyOAuth2ConnectionFactory extends OAuth2ConnectionFactory<MyOAuth2> {
    /**
     * Create a {@link OAuth2ConnectionFactory}.
     *
     * @param providerId      the provider id e.g. "facebook"
     */
    public MyOAuth2ConnectionFactory(String providerId,String appId,String appSecurity) {
        super(providerId, new MyOAuth2ServiceProvider(appId,appSecurity), new MyOAuth2Adapter());
    }
}
